package com.koron.housing.apply.bean.vo;

import com.koron.common.core.util.StringUtils;
import com.koron.housing.apply.bean.po.HousingStaffApply;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author jzp
 * @since 2022/2/26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "需求申请列表页信息", description = "HousingStaffApplyVO")
public class HousingStaffApplyVO extends HousingStaffApply {
    @ApiModelProperty(value = "当前节点名称")
    private String currNodeName;

    @ApiModelProperty(value = "当前节点名称")
    private String currNodeCode;

    @ApiModelProperty(value = "当前节点处理人名称")
    private String currNodeUser;

    @ApiModelProperty(value = "当前节点处理人id")
    private String currNodeUserId;

    @ApiModelProperty("总积分")
    private Integer total;

    @Override
    public String getTitle() {
        if (StringUtils.isEmpty(super.getTitle())) {
            return getName() + "_" + getDeptName() + "_需求申请";
        }
        return super.getTitle();
    }
}
